/*
 * TimeCost.cpp
 *
 */

#include "TimeCost.h"

namespace path {

TimeCost::TimeCost() {
}

TimeCost::~TimeCost() {
}

double TimeCost::cost(Edge & edge) {
	float speedMxS = (edge.getSpeedInKMH() * 1000.0) / 3600.0;
	return edge.getDistanceInMeters() / speedMxS;
}
}
